package com.ruoyi.web.controller.pay;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.time.DateFormatUtils;

import java.util.Date;

@Data
@ApiModel(value = "PayRequestBody")
public class PayRequestBody {

    @ApiModelProperty(value = "平台商户号", position = 1, required = true)
    private String merNo;

    @ApiModelProperty(value = "版本号固定1.1", position = 2, required = true)
    private String version = "1.1";

    @ApiModelProperty(value = "回调地址", position = 3, required = true)
    private String notifyUrl = "https://43.7.cqyanyu.com.cn/app/qianyifu/getBack";

    @ApiModelProperty(value = "发送请求的时间，格式yyyy-MM-dd HH:mm:ss", position = 4, required = true)
    private String timestamp = DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss");

    @ApiModelProperty(value = "除公共参数外所有请求参数都必须放在这个参数中传递", position = 5, required = true)
    private String apiContent;

    @ApiModelProperty(value = "签名类型固定CFCA", position = 6, required = true)
    private String signType = "CFCA";

    @ApiModelProperty(value = "签名明文串", position = 7, required = true)
    private String sign;
}
